{include file="index/head" /}
<form method="post" action="{:url('taggl')}" id="listform" data-type=ajax>
	<input type="hidden" name="tid" value="{$tid}">
	<input type="hidden" name="aids" value="{$aidsstr}">
  <div class="box">
    <div class="box-head">
      <ul class="search">
				<li>关联文章</li>
        <li>
         <input type="text" class="intxt" placeholder="请输入搜索关键字" name="title">
        </li>
        <li>
					<button type="button" class="btn" onclick="sycms.search('{:url('taggl')}')"><i class="icon-search"></i> 搜索</button> 
				</li>
      </ul>
				<div class="fr">
				<a href="javascript:history.go(-1);" class="btn"><i class="icon-mail-reply (alias)"></i>返回</a>&nbsp;&nbsp;
				<a href="javascript:history.go(0);" class="btn"><i class="icon-refresh"></i> 刷新</a> 
				</div>
			</div>
    <table class="table">
      <tr>
        <th width="100">文章ID</th>
        <th>标题</th>
				<th width="30%">标签</th>
        <th width="120">所属栏目</th>        
      </tr>
      {volist name="list" id="vo"}
      <tr>
        <td class="td1">
				{if condition="in_array($vo.id,$aids)"}
				<input type="checkbox" name="id[]" checked="checked" value="{$vo.id}" />
				{else}
				<input type="checkbox" name="id[]" value="{$vo.id}" />
				{/if}{$vo.id}
				</td>
        <td style="text-align:left;">{$vo.title}</td>
        <td>{$vo.tags}</td>
        <td>{$vo.nid|getNavName}</td>
      </tr>
      {/volist}
      <tr>
        <td colspan="4"><ul class="operat">
					<li class="li1"><input type="checkbox" onclick="sycms.allselect(this)" />全选</li>
					<li><a href="javascript:void(0);" onclick="plglarc()" class="btn"><i class="icon-check-square"></i> 关联</a></li>
				</td>
      </tr>
			<tr>
			  <td colspan="4"><div class="page">{$page}</div></td>
			</tr>
    </table>
  </div>
</form>
<script>
function plglarc(){
	layer.load(2);
	$("#listform").attr("action","{:url('pltaggl')}");
	$("#listform").submit();
}
</script>
